<html>
<head><meta charset="utf-8"><title>Locally run a test in src/librustc_ast/util/comments/tests.r · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Locally.20run.20a.20test.20in.20src.2Flibrustc_ast.2Futil.2Fcomments.2Ftests.2Er.html">Locally run a test in src/librustc_ast/util/comments/tests.r</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="203233429"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Locally%20run%20a%20test%20in%20src/librustc_ast/util/comments/tests.r/near/203233429" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Locally.20run.20a.20test.20in.20src.2Flibrustc_ast.2Futil.2Fcomments.2Ftests.2Er.html#203233429">(Jul 08 2020 at 05:46)</a>:</h4>
<p>I tried this command: <code>./x.py t --stage 1 src/librustc_ast</code> but all the output is just building the stage1 compiler:</p>
<div class="codehilite"><pre><span></span><code>Updating only changed submodules
Submodules updated in 0.05 seconds
    Finished dev [unoptimized + debuginfo] target(s) in 0.22s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.28s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.31s
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Build completed successfully in 0:00:01
</code></pre></div>



<a name="203233877"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Locally%20run%20a%20test%20in%20src/librustc_ast/util/comments/tests.r/near/203233877" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Locally.20run.20a.20test.20in.20src.2Flibrustc_ast.2Futil.2Fcomments.2Ftests.2Er.html#203233877">(Jul 08 2020 at 05:57)</a>:</h4>
<p>In the meantime, I just go to that crate and run <code>cargo test</code>.</p>



<a name="203277906"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Locally%20run%20a%20test%20in%20src/librustc_ast/util/comments/tests.r/near/203277906" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Locally.20run.20a.20test.20in.20src.2Flibrustc_ast.2Futil.2Fcomments.2Ftests.2Er.html#203277906">(Jul 08 2020 at 14:59)</a>:</h4>
<p><span class="user-mention" data-user-id="209117">@lzutao</span> Sorry, looks like I broke something in bootstrap. I will post a fix soon.</p>



<a name="203285583"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Locally%20run%20a%20test%20in%20src/librustc_ast/util/comments/tests.r/near/203285583" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Locally.20run.20a.20test.20in.20src.2Flibrustc_ast.2Futil.2Fcomments.2Ftests.2Er.html#203285583">(Jul 08 2020 at 15:56)</a>:</h4>
<p>Posted <a href="https://github.com/rust-lang/rust/pull/74153">https://github.com/rust-lang/rust/pull/74153</a></p>



<a name="203356192"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Locally%20run%20a%20test%20in%20src/librustc_ast/util/comments/tests.r/near/203356192" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Locally.20run.20a.20test.20in.20src.2Flibrustc_ast.2Futil.2Fcomments.2Ftests.2Er.html#203356192">(Jul 09 2020 at 07:08)</a>:</h4>
<p>Nice. Thanks.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>